import java.util.Scanner;
/**
 * Calculate the sum of two inputs entered on seperate lines
 * 
 * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class ProcessExample3
{
    public static void main(String[] args)
    {
        //create scanner object called keyboard
        Scanner keyboard = new Scanner(System.in);
        
        //Tell the suer what this program does
        System.out.println("This program calculated how many siblings you have");
        
        //prompt the user for first input
        System.out.print("How many brothers do you have? ");
        int brothers = keyboard.nextInt();
        
        //we read the rest of the line in case the user added "brother(s)"
        String junk = keyboard.nextLine();
        
        //prompt the user for second input
        System.out.print("How many sisters do you have? ");
        int sisters = keyboard.nextInt();
        junk = keyboard.nextLine();
        
        //process: Calculate the sum
        int sibling = brothers + sisters;
        
        //Now print the average:
        System.out.println("you have " + sibling + " sibling(s)");
        
        
    }
}
/*
 * My test session
This program calculated how many siblings you have
How many brothers do you have? 4
How many sisters do you have? 3
you have 7 sibling(s)

 * */
